<!-- 园所档案 -->
<div class="wrapper">
	<!-- second-nav -->
	<!-- <div ng-include="'main/manage/nav.html'"></div> -->
	<!-- wrapper-content -->
	<section class="wrapper-content">
		<div class="container-fluid">
			<h2 class="content-title"><span class="margin-right-10">编辑园所基本信息</span></h2>
		</div>
		<!-- form-row -->
		<div class="row">
			<div class="container-fluid">
				<div class="col-md-12 col-xs-12">
					<div class="form-horizontal">
						<!-- row1 -->
						<div class="form-group">
							<div class="col-md-12">
								<div class="control-label col-md-2">
									<span ng-show="true" class="text-danger">*</span>
									<label for="name">园所名称</label>
								</div>
								<div class="col-md-10">
									<input type="text" id="name" ng-model="modItem.name" ng-change="watchName('modItem')" class="form-control">
									<p class="text-danger" ng-bind="modItem.warn.name"></p>
								</div>
							</div>
						</div>
						<!-- row2 -->
						<div class="form-group">
							<div class="col-md-6">
								<div class="control-label col-md-4">
									<span ng-show="false" class="text-danger">*</span>
									<label for="code">园所编码</label>
								</div>
								<div class="col-md-8">
									<input type="text" id="code" ng-model="modItem.code" class="form-control">
								</div>
							</div>
							<div class="col-md-6">
								<div class="control-label col-md-4">
									<span ng-show="false" class="text-danger">*</span>
									<label for="simpleName">园所简称</label>
								</div>
								<div class="col-md-8">
									<input type="text" id="simpleName" ng-model="modItem.simpleName" class="form-control">
								</div>
							</div>
						</div>
						<!-- row3 -->
						<div class="form-group">
							<div class="col-md-4">
								<div class="control-label col-md-6">
									<span ng-show="false" class="text-danger">*</span>
									<label for="schoolName">园所图标</label>
								</div>
								<div class="col-md-6">
									<button class="btn btn-primary margin-bottom-10" ngf-select="uploadLogo('logo', $files)" ngf-pattern="'image/*'" ngf-multiple="false"><i class="fa fa-upload" aria-hidden="true"></i>选择文件</button>
									<div class="clearfix">
										<div class="com-file-upload">
											<ul>
												<li ng-repeat="file in modItem.logo">
													<img ng-if="isString(file)" ng-src="{{file}}">
													<img ng-if="!isString(file)" ngf-src="file">
													<span class="delete" ng-click="delete('logo')"><i class="fa fa-remove"></i></span>
													<a ng-if="!isString(file)" href="javascript:void(0);" ng-click="download(file)" class="com-file-detail">{{file.name}}（{{file.size | parseBit}}）</a>
												</li>
											</ul>
										</div>	
									</div>
								</div>
							</div>
							<div class="col-md-4">
								<div class="control-label col-md-6">
									<span ng-show="false" class="text-danger">*</span>
									<label for="weiParentLogo">微信家长端首页图标</label>
								</div>
								<div class="col-md-6">
									<button class="btn btn-primary margin-bottom-10" ngf-select="uploadLogo('weiParentLogo', $files)" ngf-pattern="'image/*'" ngf-multiple="false"><i class="fa fa-upload" aria-hidden="true"></i>选择文件</button>
									<div class="clearfix">
										<div class="com-file-upload">
											<ul>
												<li ng-repeat="file in modItem.weiParentLogo">
													<img ng-if="isString(file)" ng-src="{{file}}">
													<img ng-if="!isString(file)" ngf-src="file">
													<span class="delete" ng-click="delete('weiParentLogo')"><i class="fa fa-remove"></i></span>
													<a ng-if="!isString(file)" href="javascript:void(0);" ng-click="download(file)" class="com-file-detail">{{file.name}}（{{file.size | parseBit}}）</a>
												</li>
											</ul>
										</div>	
									</div>
								</div>
							</div>
							<div class="col-md-4">
								<div class="control-label col-md-6">
									<span ng-show="false" class="text-danger">*</span>
									<label for="weiTeacherLogo">微信教师端首页图标</label>
								</div>
								<div class="col-md-6">
									<button class="btn btn-primary margin-bottom-10" ngf-select="uploadLogo('weiTeacherLogo', $files)" ngf-pattern="'image/*'" ngf-multiple="false"><i class="fa fa-upload" aria-hidden="true"></i>选择文件</button>
									<div class="clearfix">
										<div class="com-file-upload">
											<ul>
												<li ng-repeat="file in modItem.weiTeacherLogo">
													<img ng-if="isString(file)" ng-src="{{file}}">
													<img ng-if="!isString(file)" ngf-src="file">
													<span class="delete" ng-click="delete('weiTeacherLogo')"><i class="fa fa-remove"></i></span>
													<a ng-if="!isString(file)" href="javascript:void(0);" ng-click="download(file)" class="com-file-detail">{{file.name}}（{{file.size | parseBit}}）</a>
												</li>
											</ul>
										</div>	
									</div>
								</div>
							</div>
						</div>
						<!-- row4 -->
						<div class="form-group">
							<div class="col-md-12 margin-bottom-10">
								<label class="control-label col-md-3">
									地址
								</label>
								<div class="col-md-3">
									<!-- 省 -->
									<ui-select ng-model="modItem.select.province" ng-change="selectProvince()">
										<ui-select-match placeholder="从列表中选取或直接填写省份">
											<span>{{$select.selected}}</span>
										</ui-select-match>
										<ui-select-choices repeat="item in modItem.provinceList | filter: $select.search">
											<div ng-bind="item"></div>
										</ui-select-choices>
									</ui-select>
									<!-- <select class="form-control" ng-model="modItem.select.province" ng-options="item for item in modItem.provinceList" ng-change="selectProvince()">
										<option value="">-- 请选择 --</option>
									</select> -->
								</div>
								<div class="col-md-3">
									<!-- 市 -->
									<ui-select ng-model="modItem.select.city" ng-change="selectCity()">
										<ui-select-match placeholder="从列表中选取或直接填写城市">
											<span>{{$select.selected}}</span>
										</ui-select-match>
										<ui-select-choices repeat="item in modItem.cityList | filter: $select.search">
											<div ng-bind="item"></div>
										</ui-select-choices>
									</ui-select>
									<!-- <select class="form-control" ng-model="modItem.select.city" ng-options="item for item in modItem.cityList" ng-change="selectCity()">
										<option value="">-- 请选择 --</option>
									</select> -->
								</div>
								<div class="col-md-3">
									<!-- 区 -->
									<ui-select ng-model="modItem.select.district" ng-change="selectDistrict()">
										<ui-select-match placeholder="从列表中选取或直接填写区域">
											<span>{{$select.selected}}</span>
										</ui-select-match>
										<ui-select-choices repeat="item in modItem.districtList | filter: $select.search">
											<div ng-bind="item"></div>
										</ui-select-choices>
									</ui-select>
									<!-- <select class="form-control" ng-model="modItem.select.district" ng-options="item for item in modItem.districtList" ng-change="selectDistrict()">
										<option value="">-- 请选择 --</option>
									</select> -->
								</div>
							</div>
							<div class="col-md-12">
								<div class="col-md-3"></div>
								<div class="col-md-9">
									<input type="text" class="form-control" ng-model="modItem.address">
								</div>
							</div>
						</div>
						<!-- row5 -->
						<div class="form-group">
							<div class="col-md-6">
								<div class="control-label col-md-4">
									<label for="">邮编</label>
								</div>
								<div class="col-md-8">
									<input type="text" class="form-control" ng-model="modItem.zipCode">
								</div>
							</div>
							<div class="col-md-6">
								<div class="control-label col-md-4">
									<label for="">建园日期</label>
								</div>
								<div class="col-md-8">
									<div class="input-group">
										<input type="text" class="form-control myDatePicker" data-format="yyyy-mm-dd" id="beginDate" ng-model="modItem.beginDate">
										<span class="input-group-btn">
											<button class="btn default" type="button" ng-click="cleanDate($event.target)"><i class="fa fa-times"></i></button>
											<button class="btn default" type="button" ng-click="openDate($event.target)"><i class="fa fa-calendar"></i></button>
										</span>
									</div>
								</div>
							</div>
						</div>
						<!-- row6 -->
						<div class="form-group">
							<div class="col-md-6">
								<div class="control-label col-md-4">
									<label for="">园长姓名</label>
								</div>
								<div class="col-md-8">
									<input type="text" class="form-control" ng-model="modItem.principal">
								</div>
							</div>
							<div class="col-md-6">
								<div class="control-label col-md-4">
									<label for="">联系电话</label>
								</div>
								<div class="col-md-8">
									<input type="text" class="form-control" ng-model="modItem.tel">
								</div>
							</div>
						</div>
						<!-- row7 -->
						<div class="form-group">
							<div class="col-md-6">
								<div class="control-label col-md-4">
									<label for="">邮件地址</label>
								</div>
								<div class="col-md-8">
									<div class="input-group">
										<span class="input-group-addon"><i class="fa fa-envelope"></i></span>
										<input name="" class="form-control" type="email" enable-validate="true" ng-model="modItem.email">
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="control-label col-md-4">
									<label for="">园所网站</label>
								</div>
								<div class="col-md-8">
									<input type="text" class="form-control" ng-model="modItem.site">
								</div>
							</div>
						</div>
						<!-- row8 -->
						<div class="form-group">
							<div class="col-md-6">
								<div class="control-label col-md-4">
									<label for="">总面积</label>
								</div>
								<div class="col-md-8">
									<div class="input-group">
										<input type="number" class="form-control" min="1" max="999" placeholder="" enable-validate="true" ng-model="modItem.totalArea">
										<span class="input-group-addon">㎡</span>
									</div>
								</div>
							</div>
						</div>
						<!-- row9 -->
						<div class="form-group">
							<div class="col-md-6">
								<div class="control-label col-md-4">
									<label for="">室内面积</label>
								</div>
								<div class="col-md-8">
									<div class="input-group">
										<input type="number" class="form-control" min="1" max="999" placeholder="" enable-validate="true" ng-model="modItem.innerArea">
										<span class="input-group-addon">㎡</span>
									</div>
								</div>
							</div>
							<div class="col-md-6">
								<div class="control-label col-md-4">
									<label for="">室外面积</label>
								</div>
								<div class="col-md-8">
									<div class="input-group">
										<input type="number" class="form-control" min="1" max="999" placeholder="" enable-validate="true" ng-model="modItem.outerArea">
										<span class="input-group-addon">㎡</span>
									</div>
								</div>
							</div>
						</div>
						<!-- row10 -->
						<div class="form-group">
							<div class="col-md-6">
								<div class="control-label col-md-4">
									<label for="">最大班级数</label>
								</div>
								<div class="col-md-8">
									<input name="" class="form-control text-right" min="1" max="999" placeholder="" enable-validate="true" type="number" ng-model="modItem.maxClassCount">
								</div>
							</div>
							<div class="col-md-6">
								<div class="control-label col-md-4">
									<label for="">最大学生数</label>
								</div>
								<div class="col-md-8">
									<input name="" class="form-control text-right" min="1" max="9999" placeholder="" enable-validate="true" type="number" ng-model="modItem.maxStudentCount">
								</div>
							</div>
						</div>
						<!-- btn-row -->
						<div class="form-group text-center">
							<button class="btn btn-primary" ng-click="editSchool()">提交</button>
							<button class="btn btn-warning" ng-click="reset()">取消</button>
						</div>
					</div>
				</div>
			</div>
		</div>

		<!-- 提示 infoModel -->
		<info-modal msg="msg" visible="visible"></info-modal>
	</section>
</div>
